@charset "utf-8";
@import "var";

.container {
  max-width: 1200px;
  margin: 0 auto;
}

// *********************** header ***********************
#header {
  position: fixed;
  top: 0;
  left: 0;

  height: 90px;
  width: 100%;
  background-color: #ADD8E6;
}

// logo 部分
.logo {
  height: 50px;
  padding: 20px;
  float: left;
  display: inline-block;

  img {
    height: 100%;
    vertical-align: middle;
  }
}

// nav 导航部分
#nav {
  float: left;
}

.nav-body {
  height: 90px;

  li {
    float: left;
    height: 100%;
    position: relative;

    .parent-nav {
      color: #FFF;
      width: 110px;
      text-indent: 1px;
      letter-spacing: 1px;
      text-align: center;
      font-size: 20px;
      font-weight: bold;
      display: inline-block;
      position: relative;
      margin-top: 30px;

      &:last-child {
        &:hover {
          .child-nav {
            visibility: visible;
            opacity: 1;
            top: 90px;
          }
        }
      }

      &:hover {
        &:after {
          display: block;
        }
      }

      &:after {
        display: none;
        content: '';
        height: 4px;
        width: 100%;
        background-color: #4fc08d;
        position: absolute;
        left: 0;
        bottom: -14px;
      }
    }

    .child-act:hover {
      &+.child-nav {
        visibility: visible;
        opacity: 1;
        top: 90px;
      }
    }

    .child-nav {
      visibility: hidden;
      opacity: 0;
      position: absolute;
      top: 120px;
      left: 0;
      background-color: #666;
      width: 600px;
      @extend .animate-default;

      &:hover {
        visibility: visible;
        opacity: 1;
        top: 90px;
      }

      .one-nav {
        .one-nav-com {
          position: relative;
          display: inline-block;
          height: 50px;
          line-height: 50px;
          width: 120px;
          color: #FFF;
          text-align: center;
          text-indent: 1px;
          letter-spacing: 1px;
          font-weight: 500;
          float: left;

          &:hover {
            background-color: #333333;
          }

          &:first-child {
            &:before {
              content: '';
              position: absolute;
              top: -14px;
              left: 46px;
              border-right: 10px solid transparent;
              border-left: 10px solid transparent;
              border-bottom: 15px solid red;
            }
          }
        }
      }

      .two-nav {
        border: 1px solid red;
        padding: 10px 50px;

        .two-nav-lay {
          float: left;
          margin-right: 20px;

          .two-nav-com {
            display: block;
            padding: 4px 10px;
            color: #FFF;
          }
        }
      }
    }
  }
}

// search 部分
#search {
  float: left;
  height: 90px;
  margin-left: 50px;

  .search-body {
    position: relative;
    margin-top: 27px;

    .search-icon {
      position: absolute;
      top: 2px;
      left: 0;
      display: inline-block;
      cursor: pointer;
      width: 30px;
      height: 30px;
      background-image: url("/yunzhuVue/image/search.svg");
      background-position: 50% 50%;
      background-repeat: no-repeat;
      background-size: 70%;
    }

    .search {
      height: 36px;
      background-color: #00aaee;
      outline: none;
      border: none;
      width: 0;
      @extend .animate-default;
    }
  }
}

// btn 部分
#button {
  font-size: 18px;
  float: right;
  height: 90px;

  .hd-btn {
    color: #FFF;
    width: 130px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    text-indent: 1px;
    letter-spacing: 1px;
    display: inline-block;
    margin-top: 24px;
  }

  .login-btn {
    border-radius: 42px;
    border: 1px solid #4fc08d;
  }

  .release-btn {
    border-radius: 6px;
    background-color: #4fc08d;
    margin-right: 50px;
  }
}


// *********************** footer***********************
#footer {
  background-color: #7D7D7D;
  text-align: center;
  color: #FFF;

  .footer-ct {
    width: 100%;
    padding: 50px 0 30px 0;
    box-sizing: border-box;
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;

    .footer-com {
      display: inline-block;
      box-sizing: border-box;
      -moz-box-sizing:border-box;
      -webkit-box-sizing:border-box;
      vertical-align: text-top;
      width: 16%;
      text-align: left;

      a {

        img {
          display: none;
          vertical-align: text-bottom;
          margin-bottom: 3px;
          width: 12px;
        }

        &:hover {
          color: #FFF;

          img {
            display: inline;
          }
        }
      }

      &:last-child {
        text-align: center;
        align-self: center;
      }

      >div {
        display: inline-block;

        >h4 {
          color: #FFF;
          font-size: 18px;
          margin-bottom: 30px;
        }

        >p,a {
          font-size: 16px;
          margin-bottom: 20px;
          color: #FFF;
          display: block;

          &.wechat {
            margin-bottom: 2px;
            font-size: 14px;
          }
        }
      }
    }
  }

  .ft-bottom {
    font-size: 14px;
    color: #FFF;
    padding: 24px 0;
    line-height: 1.666;
    background-color: #7D7D7D;
  }
}

.ft-more {
  width: 33% !important;
}

.ft-js {
  width: 15% !important;
}


// *********************** pagination ***********************
#pagination {
  text-align: center;
  margin-bottom: 100px;

  >div {
    display: inline-block;
  }
}


// *********************** publish-form 发布任务表单公共样式***********************
#publish-form {
  margin: 20px auto 50px;
}

.form-body {
  padding: 20px 50px;
  border: 1px solid #000;
  @extend .border-box;
  @extend .animate-default;


  .form-group {
    margin-bottom: 20px;

    p {
      font-size: 16px;
      text-align: left;
      margin-bottom: 10px;
    }

    input {
      height: 36px;
      width: 100%;
      outline: none;
      padding: 2px 4px;
      border: 1px solid #888;
      @extend .border-box;
    }

    select {
      height: 36px;
      outline: none;
      padding: 2px 4px;
      border: 1px solid #888;
      @extend .border-box;
    }

    textarea {
      width: 100%;
      border-radius: 6px;
      resize: none;
      outline: none;
      padding: 2px 4px;
      border: 1px solid #888;
      @extend .border-box;
    }
  }

  .form-upload {
    height: 120px;
    border-radius: 10px;
    background-color: #ADD8E6;
  }
}


.form-button {
  text-align: right;

  .form-btn {
    display: inline-block;
    margin: 50px 0 0 auto;
    padding: 12px 14px;
    text-align: center;
    text-indent: 2px;
    letter-spacing: 2px;
    border-radius: 4px;
    color: #FFF;
    background-color: #4fc08d;
    font-size: 16px;
  }
}

